package com.woniu.service;

import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryTrainingDTO;
import com.woniu.entity.dto.QueryTrainingLevelDTO;
import com.woniu.pojo.TrainingLevel;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;


public interface ITrainingLevelService extends IService<TrainingLevel> {

    PageData listSearch(Integer currentPage, Integer pageSize, QueryTrainingLevelDTO queryTrainingLevelDTO);

    Boolean nameIsExist(String name);

    Boolean idIsExist(Integer id);

    PageData listLevel(Integer currentPage, Integer pageSize, QueryTrainingLevelDTO queryTrainingLevelDTO);

    Integer getParentId(String pName);

    void setTid( Integer id);

    Boolean nameIsExist2(String name);
}
